home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / ishl.z / ishl
Encoding:
Text File  |  2002-10-03  |  2.5 KB  |  55 lines

  1. ISHL(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHLL, IIIISSHHLL, JJIISSHHLL, KKIISSHHLL - Performs logical shift with zero fill
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  9.      IIIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  10.      JJIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  11.      KKIISSHHLL (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  12.  
  13. IIMMPPLLEEMMEENNTTAATTIIOONN
  14.      UNICOS, UNICOS/mk, IRIX systems
  15.  
  16.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  17.  
  18. SSTTAANNDDAARRDDSS
  19.      Fortran extensions
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      The IISSHHLL, IIIISSHHLL, JJIISSHHLL, KKIISSHHLL intrinsic functions perform a logical
  23.      shift on an integer.  In this shift, the intrinsic shifts the integer,
  24.      left or right, by a specified number of bits.  Bits shifted out of one
  25.      end are lost, and zeros are filled in.  These functions accept the
  26.      following arguments:
  27.  
  28.      _i         Must be of type integer.  For IIIISSHHLL, must be of type integer
  29.                (KIND=2).  For JJIISSHHLL, must be of type integer (KIND=4).  For
  30.                KKIISSHHLL, must be of type integer (KIND=8).  This is the value
  31.                to be shifted.
  32.  
  33.      _s_h_i_f_t     Must be of the same type and kind type parameter as _a.  This
  34.                is the direction and distance of the shift.
  35.  
  36.                Positive shifts are left, toward the most significant bit.
  37.                Negative shifts are right, toward the least significant bit.
  38.                If _s_h_i_f_t is zero, no shift is performed.
  39.  
  40.      These are elemental intrinsic functions.  The names of these
  41.      intrinsics cannot be passed as arguments.
  42.  
  43. RREETTUURRNN VVAALLUUEESS
  44.      The result type and type parameter are the same as _i.  The result is
  45.      equal to _i logically shifted by _s_h_i_f_t bits.  Zeros are shifted in from
  46.      the opposite end.
  47.  
  48.      The integer kind determines the end that the bits are shifted out of.
  49.      For an integer (KIND=4) argument, 32 bits are shifted.  If you want to
  50.      shift a 1-byte or 2-byte argument, declare it as KIND=1 or KIND=2.
  51.  
  52. SSEEEE AALLSSOO
  53.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  54.      man page.
  55.